using System.Collections.Generic;
using Godot;

namespace Box.Base {
    public class VoronoiCell {
        public List<VoronoiVertex> Vertices = new List<VoronoiVertex>();
        public List<VoronoiEdge> Edges = new List<VoronoiEdge>();
        public List<VoronoiCell> Regions = new List<VoronoiCell>();
        public VoronoiVertex IndexPoint;

        public Vector2[] VerticesToVectorArray() {
            Vector2[] arr = new Vector2[Vertices.Count];
            int i = 0;
            foreach(VoronoiVertex vertex in Vertices) {
                arr[i] = vertex.Position;
                i++;
            }

            return arr;
        } 
    }
}